# import unittest
from driver.start import Startpage
# from utils.logger import Logger
from time import sleep
# from ddt import ddt
# from config import p
# from project_name.testcase.base_unitest import BaseUnitest



mainpage = Startpage().start_main_page()
# driver = mainpage.driver
        # cls.Newspage.web_switch_windows(1)
        # cls.Newspage.web_scroll(direction='down')
        # cls.Newspage.web_scroll_to_ele(cls.Newspage.finance)

    # def setUp(self) -> None:
    #
    #     # self.logger.info("-----开始执行测试-----")
    #
    #     logger.info("-----开始执行测试用例-----")

    # def tearDown(self) -> None:
    #     logger.info("-----测试用例已执行完成-----")
    # self.Newspage.close()

    # @classmethod
    # def tearDownClass(cls) -> None:
    #     cls.mainpage.quit()

    # @unittest.skipIf(p >=1, '运行P0级别的用例')

mainpage.input_words('python')
sleep(3)
mainpage.click_search()
# mainpage.web_switch_windows(1)
# mainpage.close()
mainpage.web_back()
sleep(2)




